﻿var mongoose = require('mongoose')
mongoose.connect('mongodb://localhost:27017/zanime', { useMongoClient: true })
//193.112.97.63
var Schema = mongoose.Schema

var gameSchema = new Schema({
   name:String,
   eName:String,
   state:String,
   area:String,
   maker:String,
   publisher:String,
   content:String,
   evaluate:String,
   gameType:String,
   roof:String,
   score:String,
   year:Number,
   month:Number,
   day:Number,
   webUrl:String,
   imgUrl:String,
   imgArr:[String]
});

// 表单
var Games = mongoose.model('games', gameSchema)


// 直接导出模型构造函数
module.exports = Games